package com.gandong8.es.web.service;

import com.gandong8.es.tool.core.EsDoc;
import com.gandong8.es.tool.core.EsQuery;

import java.io.IOException;
import java.util.List;

public interface PublicService {
    Boolean indexCreate();

    Boolean indexDelete();

    Boolean add(EsDoc obj);

    Boolean update(EsDoc obj);

    Boolean delete(EsDoc obj);

    EsDoc get(EsDoc obj);

    <T extends EsDoc> List<T> search(EsQuery<T> query) throws IOException;
}
